package com.uvnos4j.matilda.commons.ds.annotation;

import com.uvnos4j.matilda.commons.ds.enums.DsType;

import java.lang.annotation.*;

/**
 * 数据源注解
 * <p>
 * Description:数据源注解
 * </p>
 *
 * @author Guo.wl
 * @version v1.0.0
 * @since 2020-08-15 01:17:19
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Ds {
    /**
     * 切换数据源名称
     */
    public DsType value() default DsType.MASTER;
}